package com.xinruke.hostels.system.manage.interfaces.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author yutaipu
 */
@ApiModel("班次修改请求结果DTO")
@Data
public class WorkTurnQueryResultDTO {

    /**
     * id
     */
    @ApiModelProperty(value = "班次id", required = true)
    @NotNull(message = "班次id不能为空")
    private Integer id;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    private String mingcheng;

    /**
     * 开始时间
     */
    @ApiModelProperty(value = "开始时间yyyy-MM-dd ")
    @JsonFormat(pattern="HH:mm:ss",timezone="GMT+8")
    private Date kaishishijian;

    /**
     * 结束时间
     */
    @ApiModelProperty(value = "结束时间yyyy-MM-dd")
    @JsonFormat(pattern="HH:mm:ss",timezone="GMT+8")
    private Date jieshushijian;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date chuangjianshijian;

    @ApiModelProperty("创建人id")
    private Integer chuangjianrenId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("更新时间")
    private Date gengxinshijian;

    @ApiModelProperty("更新人id")
    private Integer gengxinrenId;
}
